jQuery.fn.scrollIntoView = function() {
    var el = this.get(0);
    if (el.scrollIntoView) {
	el.scrollIntoView();
    }
    return this;
};

jQuery.fn.disable = function() {
    return this.each(function() {
	$(this).attr('disabled','disabled');
    });
};

jQuery.fn.enable = function() {
    return this.each(function() {
	$(this).removeAttr('disabled');
    });
};
